import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;

/**
 * @author caiwl
 * @date 2020/6/5 17:46
 */
public class SDFMain {
    public static void main(String[] args) {
        try {
            SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMdd");
            String billDateStr = "20200604";
            Date billDate = sdf.parse(billDateStr);

            SimpleDateFormat sdf2 = new SimpleDateFormat("yyyy-MM-dd");
            Date start = sdf2.parse(sdf2.format(billDate));
            Calendar calendar = Calendar.getInstance();
            calendar.setTime(start);
            calendar.add(Calendar.DAY_OF_MONTH, 1);
            String endStr = sdf2.format(calendar.getTime());
            System.out.println(endStr);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
